package server2;

import org.zjx.handler.CommandHandler;
import org.zjx.message.CommandMessage;
import org.zjx.message.ResponseMessage;

// 用户查询处理器（从服务器处理）
public class UserQueryHandler implements CommandHandler {
    @Override
    public String getCommand() { return "USER_QUERY"; }
    @Override
    public ResponseMessage handle(CommandMessage cmd) {
        int userId = (int) cmd.getParams().get("userId");
        return ResponseMessage.success(cmd, "用户" + userId + "的详细信息");
    }
}